package com.bgs.eat.fileManager.service;

import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.multipart.MultipartRequest;

import javax.servlet.http.HttpServletResponse;

public interface FileService {

    /**
    * @Description app端附件上传
    * @Author lzy
    * @Date 2022/10/13 9:23
    * @Return java.lang.Integer
    * @param multipartFile
    */
    Integer uniUploadFile(MultipartFile multipartFile);

    /**
     * 附件上传
     * @param multipartRequest
     * @return
     */
    Integer uploadFile(MultipartRequest multipartRequest);

    /**
     * 根据Id获取图片
     * @return
     */
    void getImageById(HttpServletResponse response,Integer id);


    /**
     * 根据id进行逻辑删除
     * @return
     */
    Integer deleteById(Integer avartarId);
}
